<style type="text/css">
    .ml35 {
      margin-left: 35px;
    }
  </style>

<div class="col-sm-12 mt20">

    <div class="panel panel-default">
        <div class="panel-body" ng-keyup="myKeyup($event)">
            <div class="col-sm-2">
                <input type="text" class="form-control" placeholder="用户昵称" ng-model="searchform.nickname">
            </div>
            <div class="col-sm-2 col-sm-offset-6">
                <button class="btn btn-success btn-block" ng-click="back()">返回一级分销商</button>
            </div>
            <div class="col-sm-2 pull-right">
                <button class="btn btn-info search btn-block" ng-click="loadlist()">立即搜索</button>
            </div>
        </div>

        <div class="panel-body">
            <table class="table table-striped table-bordered dataTable table-condensed tree_table" style="table-layout:fixed">
                <thead>
                    <tr>
                        <th class="col-md-2 text-center">用户头像</th>
                        <th class="col-md-3 text-center">用户昵称</th>
                        <th class="col-md-2 text-center">关联时间</th>
                        <th class="col-md-1 text-center">级别</th>
                        <th class="col-md-2 text-center">第几位</th>
                        <th class="col-md-3 text-center">操作</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="obj in objs">
                        <td class="text-center">
                            <img ng-src="{{obj.headimg}}" alt="头像" class="" style="border-radius:100px" width="50px" height="50px">
                        </td>
                        <td class="text-center">{{obj.nickname}}</td>
                        <td class="text-center">{{obj.create_time}}</td>
                        <td class="text-center">{{obj.level}}</td>
                        <td class="text-center">{{obj.row_num}}</td>
                        <td class="text-center">
                            <button type="button" class="btn btn-success btn-xs" ng-if="obj.level != '1'" ng-click="seeALevel(obj)">查看上级</button>
                            <button type="button" ng-show="level != '2'" class="btn btn-info btn-xs" ng-click="seeLevel(obj)">查看下级共{{obj.downnum}}人</button>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>

        <div class="text-right" style="background-color: white; margin-right: 30px">
            <pagination total-items="bigTotalItems" ng-model="bigCurrentPage" ng-change="loadlist()" previous-text="上一页" next-text="下一页"
                first-text="首页" last-text="尾页" max-size="5" boundary-links="true" rotate="false" items-per-page="itemsPerPage"
                class="m-t-none m-b"></pagination>
        </div>

    </div>
</div>